package com.springboot.cloud.common.core.constant;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
public class BaseHttpStatus {

    /**
     * 处理成功
     */
    public static final String SUCCESSFUL_CODE = "000000";
    public static final String SUCCESSFUL_MESG = "处理成功";
    /**
     * 对象创建成功
     */
    public static final String CREATED = "020001";
    public static final String CREATED_MESG = "对象创建成功";
    /**
     * 请求已经被接受
     */
    public static final String ACCEPTED = "020002";
    public static final String ACCEPTED_MESG = "请求已经被接受";

    /**
     * 操作已经执行成功，但是没有返回数据
     */
    public static final String NO_CONTENT = "020004";
    public static final String NO_CONTENT_MESG = "操作已经执行成功，但是没有返回数据";

    /**
     * 资源已被移除
     */
    public static final String MOVED_PERM = "030001";
    public static final String MOVED_PERM_MESG = "资源已被移除";
    /**
     * 重定向
     */
    public static final String SEE_OTHER = "030003";
    public static final String SEE_OTHER_MESG = "重定向";
    /**
     * 资源没有被修改
     */
    public static final String NOT_MODIFIED = "030004";
    public static final String NOT_MODIFIED_MESG = "资源没有被修改";

    /**
     * 用户未找到
     */
    public static final String USER_NOT_FOUND = "030100";
    public static final String USER_NOT_FOUND_MESG = "用户未找到！";

    /**
     * 角色未找到
     */
    public static final String ROLE_NOT_FOUND = "030200";
    public static final String ROLE_NOT_FOUND_MESG = "角色未找到！";

    /**
     * 参数列表错误（缺少，格式不匹配）
     */
    public static final String BAD_REQUEST = "040000";
    public static final String BAD_REQUEST_MESG = "参数列表错误（缺少，格式不匹配）";
    /**
     * 未授权
     */
    public static final String INVALID_REQUEST = "040001";
    public static final String INVALID_REQUEST_MESG = "未授权";
    /**
     * 无效client_id
     */
    public static final String INVALID_CLIENT = "040002";
    public static final String INVALID_CLIENT_MESG = "无效client_id";
    /**
     * 访问受限，授权过期
     */
    public static final String INVALID_GRANT = "040003";
    public static final String INVALID_GRANT_MESG = "访问受限，授权过期";
    /**
     * 资源，服务未找到
     */
    public static final String INVALID_SCOPE = "040004";
    public static final String INVALID_SCOPE_MESG = "资源，服务未找到";
    /**
     * 无效token,不允许的http方法
     */
    public static final String INVALID_TOKEN = "040005";
    public static final String INVALID_TOKEN_MESG = "无效token,不允许的http方法";
    /**
     * 资源冲突，或者资源被锁
     */
    public static final String CONFLICT = "040009";
    public static final String CONFLICT_MESG = "资源冲突，或者资源被锁";
    /**
     * 授权不足
     */
    public static final String INSUFFICIENT_SCOPE = "040010";
    public static final String INSUFFICIENT_SCOPE_MESG = "授权不足";
    /**
     * 不支持的数据，媒体类型
     */
    public static final String UNSUPPORTED_TYPE = "040015";
    public static final String UNSUPPORTED_TYPE_MESG = "不支持的数据，媒体类型";
    /**
     * redirect url不匹配
     */
    public static final String REDIRECT_URI_MISMATCH = "040020";
    public static final String REDIRECT_URI_MISMATCH_MESG = "redirect url不匹配";
    /**
     * 拒绝访问
     */
    public static final String ACCESS_DENIED = "040030";
    public static final String ACCESS_DENIED_MESG = "拒绝访问";
    /**
     * 不支持该方法
     */
    public static final String METHOD_NOT_ALLOWED = "040040";
    public static final String METHOD_NOT_ALLOWED_MESG = "不支持该方法";
    /**
     * 权限服务错误
     */
    public static final String SERVER_ERROR = "040050";
    public static final String SERVER_ERROR_MESG = "权限服务错误";
    /**
     * 未授权客户端
     */
    public static final String UNAUTHORIZED_CLIENT = "040060";
    public static final String UNAUTHORIZED_CLIENT_MESG = "未授权客户端";
    /**
     * 未授权
     */
    public static final String UNAUTHORIZED = "040061";
    public static final String UNAUTHORIZED_MESG = "未授权";
    /**
     * 支持的响应类型
     */
    public static final String UNSUPPORTED_RESPONSE_TYPE = "040070";
    public static final String UNSUPPORTED_RESPONSE_TYPE_MESG = "支持的响应类型";

    /**
     * 系统内部错误
     */
    public static final String INTERNAL_SERVER_ERROR = "050000";
    public static final String INTERNAL_SERVER_ERROR_MESG = "系统内部错误";
    /**
     * 接口未实现
     */
    public static final String NOT_IMPLEMENTED = "050010";
    public static final String NOT_IMPLEMENTED_MESG = "接口未实现";
    /**
     * 不支持的授权类型
     */
    public static final String UNSUPPORTED_GRANT_TYPE = "040071";
    public static final String UNSUPPORTED_GRANT_TYPE_MESG = "不支持的授权类型";

}
